From: Mark A. Hershberger
Date: Mon, 15 Feb 2010 23:54:02 +0000 (+0000)
Subject: Provide a few more tests for bug #22501
X-Git-Tag: 1.31.0-rc.0~37735
X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=81a51365ec647ecfeeadbdea7b94a8f9bb7b00e3;p=lhc%2Fweb%2Fwiklou.git
Provide a few more tests for bug #22501
---
diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt
index aa59a2cd22..c68c10a305 100644
--- a/maintenance/parserTests.txt
+++ b/maintenance/parserTests.txt
@@ -7794,9 +7794,44 @@ this is not the the title
!! end
!! test
-Verify that displaytitle works (bug #22501)
+Verify that displaytitle works (bug #22501) RestrictDisplayTitle=false
!! options
showtitle
+title=[[Screen]]
+!! config
+wgRestrictDisplayTitle=false
+!! input
+this is not the the title
+{{DISPLAYTITLE:whatever}}
+!! result
+whatever
+this is not the the title
+
+!! end
+
+!! test
+Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true mismatch
+!! options
+showtitle
+title=[[Screen]]
+!! config
+wgRestrictDisplayTitle=true
+!! input
+this is not the the title
+{{DISPLAYTITLE:whatever}}
+!! result
+
+this is not the the title
+
+!! end
+
+!! test
+Verify that displaytitle works (bug #22501) RestrictDisplayTitle=true matching
+!! options
+showtitle
+title=[[Screen]]
+!! config
+wgRestrictDisplayTitle=true
!! input
this is not the the title
{{DISPLAYTITLE:screen}}
@@ -7806,6 +7841,39 @@ screen
!! end
+!! test
+Verify that displaytitle works (bug #22501) AllowDisplayTitle=false
+!! options
+showtitle
+title=[[Screen]]
+!! config
+wgAllowDisplayTitle=false
+!! input
+this is not the the title
+{{DISPLAYTITLE:screen}}
+!! result
+
+this is not the the title
+Template:DISPLAYTITLE:screen
+
+!! end
+
+!! test
+Verify that displaytitle works (bug #22501) AllowDisplayTitle=false no DISPLAYTITLE
+!! options
+showtitle
+title=[[Screen]]
+!! config
+wgAllowDisplayTitle=false
+!! input
+this is not the the title
+!! result
+
+this is not the the title
+
+!! end
+
+
TODO:
more images
more tables